﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MotoreDataBase;

namespace TestForm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            MotoreDataBase.CreateDataBase.stringConnection = "data source=.\\SQLEXPRESS;Integrated Security=True;initial catalog=ProvaDb";
            MotoreDataBase.GestoreBase.stringConnection = "data source=.\\SQLEXPRESS;Integrated Security=True;initial catalog=ProvaDb";
            Classe classe = new Classe();
            classe.Id = 0;
            classe.Descrizione = "descrizione classe";
            MotoreDataBase.GestoreBase.Insert<Classe>(classe);
        }
    }
}
